package com.ybb.service;

import com.ybb.dao.RoleDao;
import com.ybb.dao.RoleDaoImpl;
import com.ybb.pojo.Role;

import java.util.List;

public class RoleServiceImpl implements RoleService{
    private RoleDao roleDao=null;
    public RoleServiceImpl(){
        roleDao=new RoleDaoImpl();
    }


    @Override
    public List<Role> getAllRole() {
        return roleDao.getAllRole();
    }
}
